<template>
  <div>
    <div class="top">
      <van-icon @click="goback" class="zuo" name="arrow-left" />
      视频
    </div>
    <video id="myVideo" class="video-js" Autoplay="true">
      <source src="../assets/1.mp4" type="video/mp4" />
    </video>
  </div>
</template>

<script>
export default {
  methods: {
    goback() {
      this.$router.back();
    },
  },
};
</script>

<style scoped>

video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.top {
  width: 100%;
  height: 3.125rem;
  font-size: 1.25rem;
  text-align: center;
  line-height: 3.125rem;
  border-bottom: 0.0625rem solid black;
  position: relative;
}
.zuo {
  position: absolute;
  left: 0.625rem;
  font-size: 1.25rem;
  top: .9375rem;
}
</style>